package day1129_4;

import java.util.Arrays;

//整数数组默认元素是0
//double数组默认元素是0.0
//boolean数组默认元素是false
public class A1 {


    public static void main(String[] args) {
        int[]  x1=new int[]{10, 60};
        int[]  x2=new int[12];//创建一个有12个空间的数组
        x2[x2.length-1]=5;
        int  last=x2[11];
        System.out.println(last);

        System.out.println(  Arrays.toString(x1)   );
        int[]  x3=Arrays.copyOf(x1,3);

        int[]  x4=new int[7];
        for(int i=0; i< x4.length ;i++){
            x4[i]=   (int)(Math.random()*100);
        }//         [0.0*100, 1.0*100)
        System.out.println(Arrays.toString(x4));


    }


}
